#include "accountgetavatarrequest.h"
#include "accountmember.h"

// Qt includes
#include <QUrl>

namespace Account {

GetAvatarRequest::GetAvatarRequest(const Member *member, QObject *parent) :
    Network::GetImageRequest(member->avatar(), parent),
    m_member(member)
{
}

QUrl GetAvatarRequest::url() const
{
    QString imageUrl = m_member->avatar();
    return QUrl(imageUrl);
}

} // namespace Account
